/*****************审题时，选择审题结果是触发的事件********************************/
function select_result(obj)
{
	if(obj.value=='3')
	{
		var text = document.createElement("textarea");
		text.setAttribute('id','suggest_content');
		text.setAttribute('name','suggest');
		text.setAttribute('rows','4');
		text.setAttribute('cols','40');
		text.setAttribute('name','suggest');
		var span1=document.createElement("span");
		span1.setAttribute('class','autiding_select_1');
		span1.innerHTML="建议:";
		var span2=document.createElement("span");
		span2.setAttribute('class','autiding_select_2');
		var suggest = document.getElementById("autiding_suggest");
		span2.appendChild(text);
		suggest.appendChild(span1);
		suggest.appendChild(span2);
	}else{
		var suggest = document.getElementById("autiding_suggest");
		while(suggest.firstChild!=null)
		{
			suggest.removeChild(suggest.firstChild);
		}
	}
}
function showTopics(id) {
	document.team2.topicsID.value=id;
	document.team2.sign.value='detail';
	openDiv("topics_contant");
	var d = document.getElementById("mask");
	d.style.height=document.body.offsetHeight;
	openDiv("mask");
	dojo.event.topic.publish("show_detail");
}
function showTopicsIntro(id)
{
	document.team2.topicsID.value=id;
	document.team2.sign.value='intro';
	openDiv("topics_contant");
	openDiv("mask")
	dojo.event.topic.publish("show_detail");
}
function show_topics_details(id) {
	document.team2.topicsID.value=id.value;
	openDiv("topics_contant");
	openDiv("mask");
	closeVDiv("left");
	closeVDiv("right");
	closeVDiv("userList");
	dojo.event.topic.publish("show_detail");
}
function openSuggest(topics_id,teacher_id)
{
	document.autiding.topics_id.value=topics_id;
	document.autiding.teacher_id.value=teacher_id;
	openDiv("mask");
	openDiv("autiding_c");
	openDiv("autiding_contant");
	closeDiv("autiding_result");
}
function closeSuggest(){
	deleteRow("t_id","resultInfo","topicsList");
	document.autiding.topics_id.value="";
	closeDiv("mask");
	closeDiv("autiding_contant");
	
}
/**********审题时，表单onsubmit事件********************/
function autidingTopics(){
	var suggest = document.getElementById('suggest_content');
	if(suggest!=null)
	{
		if(suggest.value==null || suggest.value=="")
		{
			alert('建议不能为空');
			return false;
		}
	}
	closeDiv("autiding_c");
	openDiv("autiding_result");
	return true;
}